CC	= gcc -std=c99
CXX	= g++ 
CFLAGS	= -g -Wall -O3
CXXFLAGS=

SOURCES=$(wildcard *.c)   # all source files in the directory
BINS=$(SOURCES:.c=)       # remove .c from SOURCES

.PHONY: all clean cleanall

all: $(BINS)

# warning !!!!
clean:
	-rm -f *~

# warning !!!!
cleanall: clean
	-rm -f $(BINS)
#find . -type f -executable -not -name "*.sh" -and -not -name "*.[ch]" -and -not -name "[Mm]akefile" -exec rm --interactive {} \; -print
